import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ImgMaterialListComponent } from './img-material-list/img-material-list.component';
import { ImgMaterialEditComponent } from './img-material-edit/img-material-edit.component';
import { CanDeactivateVideoGuardActivate } from '@core/guards-activate/can-deactivate-video-guard.activate';
import { MaterialTypeListComponent } from './material-type-list/material-type-list.component';

const routes: Routes = [

  { path: 'list/:origin', component: ImgMaterialListComponent },
  { path: 'list/:origin/edit', component: ImgMaterialEditComponent ,canDeactivate: [CanDeactivateVideoGuardActivate], },
  { path: 'material-type-list', component: MaterialTypeListComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ImgMaterialRoutingModule { }
